package com.xy.biz.base.domain.enums;

import com.xy.lang.enums.CodeEnum;

/**
 * 保质期单位：1-天，2-月，3-年
 */
public enum QualityGuaranteePeriodUnitEnum implements CodeEnum {

    DAY(1, "天"),
    MONTH(2, "月"),
    YEAR(3, "年");

    private int code;
    private String name;

    QualityGuaranteePeriodUnitEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
